package cn.wh.context.support;

/**
 * @Author wanghao
 * @Date 2022-09-03 15:35
 * @Description: TODO
 */
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {

    private String[] configLocations;


    public ClassPathXmlApplicationContext() {
    }

    public ClassPathXmlApplicationContext(String configLocation){
        this(new String[]{configLocation});
    }

    public ClassPathXmlApplicationContext(String[] configLocations) {
        this.configLocations = configLocations;
        refresh();
    }

    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }


}
